import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/utils/constants'

//格式化时间
export const getIllnessTimeText = (time: IllnessTime) =>
  timeOptions.find((item) => item.value === time)?.label
// 是否就诊格式化
export const getConsultFlagText = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label
